﻿namespace Agile.Infra.Pay.WxPay.Models
{
    public class WxProfitSharingRequest
    {
        /// <summary>微信订单号 示例值：4208450740201411110007820472</summary> 
        public string TransactionID { get; set; }

        /// <summary>商户分账单号 商户系统内部的分账单号，在商户系统内部唯一，同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@ </summary> 
        public string OutOrderNO { get; set; }

        /// <summary>分账接收方列表</summary> 
        public List<WxProfitSharingReceiverRequest> Receivers { get; set; }

        /// <summary>是否解冻剩余未分资金</summary> 
        public bool UnfreezeUnsplit { get; set; }
    }

    public class WxProfitSharingReceiverRequest
    {
        /// <summary>分账接收方类型  	
        /// 1、MERCHANT_ID：商户号
        /// 2、PERSONAL_OPENID：个人openid（由父商户APPID转换得到）
        /// 示例值：MERCHANT_ID
        /// </summary> 
        public string Type { get; set; }

        /// <summary>分账接收方帐号</summary> 
        public string Account { get; set; }

        /// <summary>分账个人接收方姓名</summary> 
        public string Name { get; set; }

        /// <summary>分账金额，单位为分，只能为整数，不能超过原订单支付金额及最大分账比例金额</summary> 
        public int Amount { get; set; }

        /// <summary>分账描述</summary> 
        public string Description { get; set; }
    }
}
